import memcache


mc = memcache.Client(['127.0.0.1:11211'], debug=True)


def set(key, value, timeout=120):
    return mc.set(key, value, timeout)


def get(key):
    return mc.get(key)
